//
//  GWMyNavigationBar.m
//  网易新闻
//
//  Created by qianfeng on 16/2/29.
//  Copyright (c) 2016年 高炜. All rights reserved.
//

#import "GWMyNavigationBar.h"

@implementation GWMyNavigationBar

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    for (UIButton *btn in self.subviews) {
        if (![btn isKindOfClass:[UIButton class]])continue;
        if (btn.centerX<self.width*0.5) {
            btn.x =0;
        }
        if (btn.centerX>self.width*0.5) {
            btn.x =self.width-btn.width;
        }
    }
}
@end
